send

open fun send(@NonNull pendingIntent: @NonNull PendingIntent, code: Int, onFinished: @Nullable PendingIntent.OnFinished, @Nullable handler: @Nullable Handler)(source)
open fun send(@NonNull pendingIntent: @NonNull PendingIntent, @NonNull context: @NonNull Context, code: Int, @NonNull intent: @NonNull Intent, onFinished: @Nullable PendingIntent.OnFinished, @Nullable handler: @Nullable Handler)(source)

send variants that support PendingIntent.OnFinished callbacks have a bug on many API levels that the callback may be invoked even if the PendingIntent was never sent (ie, such as if the PendingIntent was canceled, and the send() invocation threw a PendingIntent.CanceledException). Using this compatibility method fixes that bug and guarantees that PendingIntent.OnFinished callbacks will only be invoked if send() completed successfully.

See send.


open fun send(@NonNull pendingIntent: @NonNull PendingIntent, @NonNull context: @NonNull Context, code: Int, @NonNull intent: @NonNull Intent, onFinished: @Nullable PendingIntent.OnFinished, @Nullable handler: @Nullable Handler, @Nullable requiredPermissions: @Nullable String, @Nullable options: @Nullable Bundle)(source)

send variants that support PendingIntent.OnFinished callbacks have a bug on many API levels that the callback may be invoked even if the PendingIntent was never sent (ie, such as if the PendingIntent was canceled, and the send() invocation threw a PendingIntent.CanceledException). Using this compatibility method fixes that bug and guarantees that PendingIntent.OnFinished callbacks will only be invoked if send() completed successfully.

See send